import ajax from '@/untils/ajax'

export const login = (username, password) =>
  ajax({
    url: '/api/login',
    method: 'post',
    data: {
      username,
      password
    }
  })

export const logout = () =>
  ajax({
    url: '/api/logout',
    method: 'post'
  })
